.class Lcom/example/m6wmr/ShopinActivity$5;
.super Ljava/lang/Thread;
.source "ShopinActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ShopinActivity;->uploadFile()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ShopinActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ShopinActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    .line 305
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 29

    .prologue
    .line 307
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 309
    new-instance v21, Landroid/os/Message;

    invoke-direct/range {v21 .. v21}, Landroid/os/Message;-><init>()V

    .line 310
    .local v21, "msg":Landroid/os/Message;
    const-string v14, "\r\n"

    .line 311
    .local v14, "end":Ljava/lang/String;
    const-string v23, "--"

    .line 312
    .local v23, "twoHyphens":Ljava/lang/String;
    const-string v7, "*****"

    .line 314
    .local v7, "boundary":Ljava/lang/String;
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    .line 315
    const-string v26, "userInfo"

    const/16 v27, 0x0

    .line 314
    invoke-virtual/range {v25 .. v27}, Lcom/example/m6wmr/ShopinActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v22

    .line 316
    .local v22, "preferences":Landroid/content/SharedPreferences;
    const-string v25, "uid"

    const-string v26, ""

    move-object/from16 v0, v22

    move-object/from16 v1, v25

    move-object/from16 v2, v26

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 317
    .local v3, "account":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    const-string v26, "pass"

    const-string v27, ""

    move-object/from16 v0, v22

    move-object/from16 v1, v26

    move-object/from16 v2, v27

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v26

    invoke-static/range {v25 .. v26}, Lcom/example/m6wmr/ShopinActivity;->access$20(Lcom/example/m6wmr/ShopinActivity;Ljava/lang/String;)V

    .line 318
    if-eqz v3, :cond_0

    const-string v25, ""

    move-object/from16 v0, v25

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v25

    if-eqz v25, :cond_1

    .line 319
    :cond_0
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 320
    const-string v25, "nologin"

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 321
    const/16 v25, 0x1

    move/from16 v0, v25

    move-object/from16 v1, v21

    iput v0, v1, Landroid/os/Message;->arg1:I

    .line 322
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 435
    .end local v3    # "account":Ljava/lang/String;
    .end local v22    # "preferences":Landroid/content/SharedPreferences;
    :goto_0
    return-void

    .line 325
    .restart local v3    # "account":Ljava/lang/String;
    .restart local v22    # "preferences":Landroid/content/SharedPreferences;
    :cond_1
    new-instance v25, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v26, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static/range {v26 .. v26}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v26

    invoke-virtual/range {v26 .. v26}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v26

    invoke-static/range {v26 .. v26}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v26

    invoke-direct/range {v25 .. v26}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v26, "/index.php?ctrl=app&action=updatezhizhao&datatype=json&uid="

    invoke-virtual/range {v25 .. v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    move-object/from16 v0, v25

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    const-string v26, "&pwd="

    invoke-virtual/range {v25 .. v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v26, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->pwd:Ljava/lang/String;
    invoke-static/range {v26 .. v26}, Lcom/example/m6wmr/ShopinActivity;->access$22(Lcom/example/m6wmr/ShopinActivity;)Ljava/lang/String;

    move-result-object v26

    invoke-virtual/range {v25 .. v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    invoke-virtual/range {v25 .. v25}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    .line 326
    .local v17, "httpUrl":Ljava/lang/String;
    const-string v25, "xxx-----------------"

    move-object/from16 v0, v25

    move-object/from16 v1, v17

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 327
    sget-object v25, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v26, Ljava/lang/StringBuilder;

    const-string v27, "\u6587\u4ef6\u540d-"

    invoke-direct/range {v26 .. v27}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v27, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v28, v0

    move-object/from16 v0, v28

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity;->UppicPath:Ljava/lang/String;

    move-object/from16 v28, v0

    invoke-virtual/range {v27 .. v28}, Lcom/example/m6wmr/ShopinActivity;->getFileName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v27

    invoke-virtual/range {v26 .. v27}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    invoke-virtual/range {v26 .. v26}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v26

    invoke-virtual/range {v25 .. v26}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 328
    sget-object v25, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v26, Ljava/lang/StringBuilder;

    const-string v27, "\u63d0\u4ea4\u8fde\u63a5-"

    invoke-direct/range {v26 .. v27}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v26

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    invoke-virtual/range {v26 .. v26}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v26

    invoke-virtual/range {v25 .. v26}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 329
    new-instance v24, Ljava/net/URL;

    move-object/from16 v0, v24

    move-object/from16 v1, v17

    invoke-direct {v0, v1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 332
    .local v24, "url":Ljava/net/URL;
    invoke-virtual/range {v24 .. v24}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v11

    .line 331
    check-cast v11, Ljava/net/HttpURLConnection;

    .line 334
    .local v11, "con":Ljava/net/HttpURLConnection;
    const/16 v25, 0x1

    move/from16 v0, v25

    invoke-virtual {v11, v0}, Ljava/net/HttpURLConnection;->setDoInput(Z)V

    .line 335
    const/16 v25, 0x1

    move/from16 v0, v25

    invoke-virtual {v11, v0}, Ljava/net/HttpURLConnection;->setDoOutput(Z)V

    .line 336
    const/16 v25, 0x0

    move/from16 v0, v25

    invoke-virtual {v11, v0}, Ljava/net/HttpURLConnection;->setUseCaches(Z)V

    .line 338
    const-string v25, "POST"

    move-object/from16 v0, v25

    invoke-virtual {v11, v0}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    .line 340
    const-string v25, "Connection"

    const-string v26, "Keep-Alive"

    move-object/from16 v0, v25

    move-object/from16 v1, v26

    invoke-virtual {v11, v0, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 341
    const-string v25, "Charset"

    const-string v26, "UTF-8"

    move-object/from16 v0, v25

    move-object/from16 v1, v26

    invoke-virtual {v11, v0, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 342
    const-string v25, "Cookie"

    .line 343
    new-instance v26, Ljava/lang/StringBuilder;

    const-string v27, "app_login="

    invoke-direct/range {v26 .. v27}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v27, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static/range {v27 .. v27}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Lmyapp/MyApp;->getlogintype()Ljava/lang/String;

    move-result-object v27

    invoke-virtual/range {v26 .. v27}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    .line 344
    const-string v27, ";app_loginphone="

    invoke-virtual/range {v26 .. v27}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v27, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->m:Lmyapp/MyApp;
    invoke-static/range {v27 .. v27}, Lcom/example/m6wmr/ShopinActivity;->access$6(Lcom/example/m6wmr/ShopinActivity;)Lmyapp/MyApp;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Lmyapp/MyApp;->getloginphone()Ljava/lang/String;

    move-result-object v27

    invoke-virtual/range {v26 .. v27}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    .line 345
    const-string v27, ";"

    invoke-virtual/range {v26 .. v27}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    .line 343
    invoke-virtual/range {v26 .. v26}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v26

    .line 342
    move-object/from16 v0, v25

    move-object/from16 v1, v26

    invoke-virtual {v11, v0, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 346
    const-string v25, "Content-Type"

    .line 347
    new-instance v26, Ljava/lang/StringBuilder;

    const-string v27, "multipart/form-data;boundary="

    invoke-direct/range {v26 .. v27}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v26

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    invoke-virtual/range {v26 .. v26}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v26

    .line 346
    move-object/from16 v0, v25

    move-object/from16 v1, v26

    invoke-virtual {v11, v0, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 349
    new-instance v12, Ljava/io/DataOutputStream;

    .line 350
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v25

    .line 349
    move-object/from16 v0, v25

    invoke-direct {v12, v0}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    .line 351
    .local v12, "ds":Ljava/io/DataOutputStream;
    new-instance v25, Ljava/lang/StringBuilder;

    invoke-static/range {v23 .. v23}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v26

    invoke-direct/range {v25 .. v26}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v25

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    move-object/from16 v0, v25

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    invoke-virtual/range {v25 .. v25}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v25

    move-object/from16 v0, v25

    invoke-virtual {v12, v0}, Ljava/io/DataOutputStream;->writeBytes(Ljava/lang/String;)V

    .line 352
    new-instance v25, Ljava/lang/StringBuilder;

    const-string v26, "Content-Disposition: form-data; name=\"imgFile\";filename=\""

    invoke-direct/range {v25 .. v26}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 354
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v26, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v27, v0

    move-object/from16 v0, v27

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity;->UppicPath:Ljava/lang/String;

    move-object/from16 v27, v0

    invoke-virtual/range {v26 .. v27}, Lcom/example/m6wmr/ShopinActivity;->getFileName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v26

    invoke-virtual/range {v25 .. v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    const-string v26, ".jpg"

    invoke-virtual/range {v25 .. v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    const-string v26, "\""

    invoke-virtual/range {v25 .. v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    move-object/from16 v0, v25

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    invoke-virtual/range {v25 .. v25}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v25

    .line 352
    move-object/from16 v0, v25

    invoke-virtual {v12, v0}, Ljava/io/DataOutputStream;->writeBytes(Ljava/lang/String;)V

    .line 355
    invoke-virtual {v12, v14}, Ljava/io/DataOutputStream;->writeBytes(Ljava/lang/String;)V

    .line 357
    new-instance v15, Ljava/io/FileInputStream;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity;->UppicPath:Ljava/lang/String;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    invoke-direct {v15, v0}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    .line 359
    .local v15, "fStream":Ljava/io/FileInputStream;
    const/16 v9, 0x400

    .line 360
    .local v9, "bufferSize":I
    new-array v8, v9, [B

    .line 361
    .local v8, "buffer":[B
    const/16 v20, -0x1

    .line 363
    .local v20, "length":I
    :goto_1
    invoke-virtual {v15, v8}, Ljava/io/FileInputStream;->read([B)I

    move-result v20

    const/16 v25, -0x1

    move/from16 v0, v20

    move/from16 v1, v25

    if-ne v0, v1, :cond_3

    .line 367
    invoke-virtual {v12, v14}, Ljava/io/DataOutputStream;->writeBytes(Ljava/lang/String;)V

    .line 368
    new-instance v25, Ljava/lang/StringBuilder;

    invoke-static/range {v23 .. v23}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v26

    invoke-direct/range {v25 .. v26}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v25

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    move-object/from16 v0, v25

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v25

    invoke-virtual/range {v25 .. v25}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v25

    move-object/from16 v0, v25

    invoke-virtual {v12, v0}, Ljava/io/DataOutputStream;->writeBytes(Ljava/lang/String;)V

    .line 370
    invoke-virtual {v15}, Ljava/io/FileInputStream;->close()V

    .line 371
    invoke-virtual {v12}, Ljava/io/DataOutputStream;->flush()V

    .line 373
    invoke-virtual {v11}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v18

    .line 375
    .local v18, "is":Ljava/io/InputStream;
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    .line 376
    .local v4, "b":Ljava/lang/StringBuffer;
    :goto_2
    invoke-virtual/range {v18 .. v18}, Ljava/io/InputStream;->read()I

    move-result v10

    .local v10, "ch":I
    const/16 v25, -0x1

    move/from16 v0, v25

    if-ne v10, v0, :cond_4

    .line 382
    sget-object v25, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v26, Ljava/lang/StringBuilder;

    const-string v27, "\u8fd4\u56de\u6570\u636e-"

    invoke-direct/range {v26 .. v27}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v27

    invoke-virtual/range {v26 .. v27}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v26

    invoke-virtual/range {v26 .. v26}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v26

    invoke-virtual/range {v25 .. v26}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 383
    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v25

    invoke-virtual/range {v25 .. v25}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v6

    .line 386
    .local v6, "backstrl":Ljava/lang/String;
    invoke-virtual {v12}, Ljava/io/DataOutputStream;->close()V

    .line 387
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 388
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->is_shot:Z
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$23(Lcom/example/m6wmr/ShopinActivity;)Z

    move-result v25

    if-eqz v25, :cond_2

    .line 390
    new-instance v16, Ljava/io/File;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    move-object/from16 v0, v25

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity;->UppicPath:Ljava/lang/String;

    move-object/from16 v25, v0

    move-object/from16 v0, v16

    move-object/from16 v1, v25

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 391
    .local v16, "file":Ljava/io/File;
    invoke-virtual/range {v16 .. v16}, Ljava/io/File;->delete()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 397
    .end local v16    # "file":Ljava/io/File;
    :cond_2
    :try_start_1
    new-instance v19, Lorg/json/JSONObject;

    move-object/from16 v0, v19

    invoke-direct {v0, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 398
    .local v19, "json":Lorg/json/JSONObject;
    const-string v25, "xxx"

    move-object/from16 v0, v25

    invoke-static {v0, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 400
    const-string v25, "error"

    move-object/from16 v0, v19

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v25

    const-string v26, "true"

    invoke-virtual/range {v25 .. v26}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v25

    if-eqz v25, :cond_5

    .line 401
    const-string v25, "msg"

    move-object/from16 v0, v19

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 402
    const/16 v25, 0x1

    move/from16 v0, v25

    move-object/from16 v1, v21

    iput v0, v1, Landroid/os/Message;->arg1:I

    .line 403
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto/16 :goto_0

    .line 419
    .end local v19    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v13

    .line 422
    .local v13, "e":Lorg/json/JSONException;
    :try_start_2
    invoke-virtual {v13}, Lorg/json/JSONException;->printStackTrace()V

    .line 424
    const/16 v25, 0x4

    move/from16 v0, v25

    move-object/from16 v1, v21

    iput v0, v1, Landroid/os/Message;->arg1:I

    .line 425
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_0

    .line 429
    .end local v3    # "account":Ljava/lang/String;
    .end local v4    # "b":Ljava/lang/StringBuffer;
    .end local v6    # "backstrl":Ljava/lang/String;
    .end local v8    # "buffer":[B
    .end local v9    # "bufferSize":I
    .end local v10    # "ch":I
    .end local v11    # "con":Ljava/net/HttpURLConnection;
    .end local v12    # "ds":Ljava/io/DataOutputStream;
    .end local v13    # "e":Lorg/json/JSONException;
    .end local v15    # "fStream":Ljava/io/FileInputStream;
    .end local v17    # "httpUrl":Ljava/lang/String;
    .end local v18    # "is":Ljava/io/InputStream;
    .end local v20    # "length":I
    .end local v22    # "preferences":Landroid/content/SharedPreferences;
    .end local v24    # "url":Ljava/net/URL;
    :catch_1
    move-exception v13

    .line 431
    .local v13, "e":Ljava/lang/Exception;
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 433
    const/16 v25, 0x8

    move/from16 v0, v25

    move-object/from16 v1, v21

    iput v0, v1, Landroid/os/Message;->arg1:I

    .line 434
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 365
    .end local v13    # "e":Ljava/lang/Exception;
    .restart local v3    # "account":Ljava/lang/String;
    .restart local v8    # "buffer":[B
    .restart local v9    # "bufferSize":I
    .restart local v11    # "con":Ljava/net/HttpURLConnection;
    .restart local v12    # "ds":Ljava/io/DataOutputStream;
    .restart local v15    # "fStream":Ljava/io/FileInputStream;
    .restart local v17    # "httpUrl":Ljava/lang/String;
    .restart local v20    # "length":I
    .restart local v22    # "preferences":Landroid/content/SharedPreferences;
    .restart local v24    # "url":Ljava/net/URL;
    :cond_3
    const/16 v25, 0x0

    :try_start_3
    move/from16 v0, v25

    move/from16 v1, v20

    invoke-virtual {v12, v8, v0, v1}, Ljava/io/DataOutputStream;->write([BII)V

    goto/16 :goto_1

    .line 377
    .restart local v4    # "b":Ljava/lang/StringBuffer;
    .restart local v10    # "ch":I
    .restart local v18    # "is":Ljava/io/InputStream;
    :cond_4
    int-to-char v0, v10

    move/from16 v25, v0

    move/from16 v0, v25

    invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    goto/16 :goto_2

    .line 406
    .restart local v6    # "backstrl":Ljava/lang/String;
    .restart local v19    # "json":Lorg/json/JSONObject;
    :cond_5
    :try_start_4
    const-string v25, "msg"

    move-object/from16 v0, v19

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v25

    if-eqz v25, :cond_6

    .line 408
    const/16 v25, 0x2

    move/from16 v0, v25

    move-object/from16 v1, v21

    iput v0, v1, Landroid/os/Message;->arg1:I

    .line 409
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 413
    :cond_6
    const-string v25, "msg"

    move-object/from16 v0, v19

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    .line 415
    .local v5, "backdata":Lorg/json/JSONObject;
    const-string v25, "logo"

    move-object/from16 v0, v25

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 416
    const/16 v25, 0x7

    move/from16 v0, v25

    move-object/from16 v1, v21

    iput v0, v1, Landroid/os/Message;->arg1:I

    .line 417
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/ShopinActivity$5;->this$0:Lcom/example/m6wmr/ShopinActivity;

    move-object/from16 v25, v0

    # getter for: Lcom/example/m6wmr/ShopinActivity;->h:Landroid/os/Handler;
    invoke-static/range {v25 .. v25}, Lcom/example/m6wmr/ShopinActivity;->access$21(Lcom/example/m6wmr/ShopinActivity;)Landroid/os/Handler;

    move-result-object v25

    move-object/from16 v0, v25

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_4
    .catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_0
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 441
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 442
    monitor-exit p0

    return-void

    .line 441
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
